<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <title>js/Api/Newuser.js</title>
    <link rel="stylesheet" href="http://yui.yahooapis.com/3.9.1/build/cssgrids/cssgrids-min.css">
    <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
    <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
    <link rel="shortcut icon" type="image/png" href="../assets/favicon.png">
    <script src="http://yui.yahooapis.com/combo?3.9.1/build/yui/yui-min.js"></script>
</head>
<body class="yui3-skin-sam">

<div id="doc">
    <div id="hd" class="yui3-g header">
        <div class="yui3-u-3-4">
            
                <h1><img src="../assets/css/logo.png" title=""></h1>
            
        </div>
        <div class="yui3-u-1-4 version">
            <em>API Docs for: </em>
        </div>
    </div>
    <div id="bd" class="yui3-g">

        <div class="yui3-u-1-4">
            <div id="docs-sidebar" class="sidebar apidocs">
                <div id="api-list">
    <h2 class="off-left">APIs</h2>
    <div id="api-tabview" class="tabview">
        <ul class="tabs">
            <li><a href="#api-classes">Classes</a></li>
            <li><a href="#api-modules">Modules</a></li>
        </ul>

        <div id="api-tabview-filter">
            <input type="search" id="api-filter" placeholder="Type to filter APIs">
        </div>

        <div id="api-tabview-panel">
            <ul id="api-classes" class="apis classes">
            
                <li><a href="../classes/Copier.html">Copier</a></li>
            
                <li><a href="../classes/delmem.html">delmem</a></li>
            
                <li><a href="../classes/delnote.html">delnote</a></li>
            
                <li><a href="../classes/delrelnote.html">delrelnote</a></li>
            
                <li><a href="../classes/delreluser.html">delreluser</a></li>
            
                <li><a href="../classes/deluser.html">deluser</a></li>
            
                <li><a href="../classes/err.html">err</a></li>
            
                <li><a href="../classes/getmems.html">getmems</a></li>
            
                <li><a href="../classes/getnote.html">getnote</a></li>
            
                <li><a href="../classes/getnotes.html">getnotes</a></li>
            
                <li><a href="../classes/getusers.html">getusers</a></li>
            
                <li><a href="../classes/newmem.html">newmem</a></li>
            
                <li><a href="../classes/newnote.html">newnote</a></li>
            
                <li><a href="../classes/newuser.html">newuser</a></li>
            
                <li><a href="../classes/putmemnote.html">putmemnote</a></li>
            
                <li><a href="../classes/putrelnote.html">putrelnote</a></li>
            
                <li><a href="../classes/putreluser.html">putreluser</a></li>
            
                <li><a href="../classes/Tools.Copier.html">Tools.Copier</a></li>
            
                <li><a href="../classes/Tools.inject.html">Tools.inject</a></li>
            
                <li><a href="../classes/Tools.isArray.html">Tools.isArray</a></li>
            
                <li><a href="../classes/Tools.lpad.html">Tools.lpad</a></li>
            
                <li><a href="../classes/Tools.map.html">Tools.map</a></li>
            
                <li><a href="../classes/ToolsService.html">ToolsService</a></li>
            
                <li><a href="../classes/updatenote.html">updatenote</a></li>
            
            </ul>

            <ul id="api-modules" class="apis modules">
            
                <li><a href="../modules/Tools.html">Tools</a></li>
            
            </ul>
        </div>
    </div>
</div>

            </div>
        </div>
        <div class="yui3-u-3-4">
                <div id="api-options">
        Show:
        <label for="api-show-inherited">
            <input type="checkbox" id="api-show-inherited" checked>
            Inherited
        </label>

        <label for="api-show-protected">
            <input type="checkbox" id="api-show-protected">
            Protected
        </label>

        <label for="api-show-private">
            <input type="checkbox" id="api-show-private">
            Private
        </label>
        <label for="api-show-deprecated">
            <input type="checkbox" id="api-show-deprecated">
            Deprecated
        </label>

    </div>


            <div class="apidocs">
                <div id="docs-main">
                    <div class="content">
                        <h1 class="file-heading">File: js/Api/Newuser.js</h1>

<div class="file">
    <pre class="code prettyprint linenums">
App.Api.factory(&#x27;Api.Newuser&#x27;, [function () {
			/**
* Tworzy nowego użytkownika, o dowolnej roli. Tylko admin ma prawo tworzyć użytkowników.
* @class newuser
*/
	function newuser(){
		/**
		* newuser
		* @property oper
		* @private 
		*/
		var oper = &#x27;newuser&#x27;,

		/**
		*  użytkownik, którego rola to admin, zostaje właścicielem
		* @property user 
		* @private 
		*/
		user ,

		/**
		*  hasło tego użytkownika
		* @property pass 
		* @private 
		*/
		pass ,

		/**
		*  login nowego użytkownika
		* @property login 
		* @private 
		*/
		login ,

		/**
		*  hasło nowego użytkownika
		* @property npas 
		* @private 
		*/
		npas ,

		/**
		*  rola
		* @property role 
		* @private 
		*/
		role ,

		/**
		*  rola
		* @property role 
		* @private 
		*/
		role ,
		that = this;


		function getOper(noper){
			return oper;
		}
		function getUser(nuser){
			return user ;
		}
		function getPass(npass){
			return pass ;
		}
		function getLogin(nlogin){
			return login ;
		}
		function getNpas(nnpas){
			return npas ;
		}
		function getRole(nrole){
			return role ;
		}
		function setUser(nuser){
			user  = nuser ;
		}
		function setPass(npass){
			pass  = npass ;
		}
		function setLogin(nlogin){
			login  = nlogin ;
		}
		function setNpas(nnpas){
			npas  = nnpas ;
		}
		function setRole(nrole){
			role  = nrole ;
		}

		function toObject(){
			return{
				oper: oper,
				user : user ,
				pass : pass ,
				login : login ,
				npas : npas ,
				role : role 
			};
		}

		/**
	 	* konstruktor
	 	*
	   	* @constructor         
	  	* @method construct    
	  	* @public              
	 	*/
		(function newuser(){
			that.getOper = getOper;
			that.getUser = getUser;
			that.getPass = getPass;
			that.getLogin = getLogin;
			that.getNpas = getNpas;
			that.getRole = getRole;
			that.setUser = setUser;
			that.setPass = setPass;
			that.setLogin = setLogin;
			that.setNpas = setNpas;
			that.setRole = setRole;
			that.toObject = toObject;
		})();
	}
	newuser.fromObject = function (obj){
		var object = new newuser();
		object.setUser(obj.user);
		object.setPass(obj.pass);
		object.setLogin(obj.login);
		object.setNpas(obj.npas);
		object.setRole(obj.role);
		return object;
	}
	return newuser;
}]);
    </pre>
</div>

                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="../assets/vendor/prettify/prettify-min.js"></script>
<script>prettyPrint();</script>
<script src="../assets/js/yui-prettify.js"></script>
<script src="../assets/../api.js"></script>
<script src="../assets/js/api-filter.js"></script>
<script src="../assets/js/api-list.js"></script>
<script src="../assets/js/api-search.js"></script>
<script src="../assets/js/apidocs.js"></script>
</body>
</html>
